#include"Shm.hpp"
#include"fifo.hpp"
#include"Common.hpp"


int main()
{
    FileOper writefile(PATH,FILENAME);
    writefile.OpenForWrie();

    Shm shm(pathname,projid,USER);
    char * men = (char*)shm.VirtualAddr();

    int dex = 0;
    for(char c = 'A';c <='Z';c++,dex+=2)
    {
        sleep(1);
        men[dex] = c;
        men[dex+1] = c;
        sleep(1);
        men[dex+2] = 0;

        writefile.WakeUp();
    }

    writefile.Close();
    return 0;
}